package com.xauto.pioneer.appuser.model;

import org.json.JSONObject;

/**
 * 会员优惠券信息
 * Created by Lemon on 22/04/2017.
 */
public class MemberCoupon extends BaseModel<MemberCoupon> {

    /** 优惠券总数*/
    public String voucher_total_count;
    /** 有效优惠券数量*/
    public String voucher_useable_count;

    @Override
    public MemberCoupon parse(JSONObject jsonObject) {
        if(jsonObject != null) {
            voucher_total_count = jsonObject.optString("voucher_total_count");
            voucher_useable_count = jsonObject.optString("voucher_useable_count");
            return this;
        }
        return null;
    }
}
